package com.atguigu.util.method_son;

import com.atguigu.util.method_fa.Employee;

/**
 * @author caesar
 * @date 2025/7/7
 * @Description:
 * @apiNote
 */
public class Manager extends Employee {
    private int teamSize;

    public Manager() {
    }

    public Manager(String name, String employeeId, int teamSize) {
        super(name, employeeId);
        this.teamSize = teamSize;
    }

    public int getTeamSize() {
        return teamSize;
    }

    public void setTeamSize(int teamSize) {
        this.teamSize = teamSize;
    }
    @Override
    public void work() {
        System.out.println("经理正在管理团队");
    }

    @Override
    public String toString() {
        return super.toString() + ", 团队人数: " + teamSize;
    }
}
